package some.member.controller;

import javax.servlet.http.HttpSession;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class LogoutController {
	
	private Logger log = Logger.getLogger(this.getClass());
		
	@RequestMapping("/logout.do")
	public String sometalkMain(HttpSession session){
		
		if(log.isDebugEnabled()){
			log.debug("session id,password : " + session.getAttribute("id") + ", " + session.getAttribute("password"));
		}
		
		session.invalidate();
		
		return "redirect:/main.do";
	}
}
